package com.cy.pj.yy.service;

import com.cy.pj.yy.dao.DoSickRoomDao;
import com.cy.pj.yy.pojo.DoSickRoom;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoSickRoomServiceImpl implements DoSickRoomService{
    @Autowired
    private DoSickRoomDao doSickRoomDao;
    @Override
    public List<DoSickRoom> findByTraid(Integer Traid) {
        List<DoSickRoom> list = doSickRoomDao.findByTraid(Traid);
        return list;
    }

    @Override
    public List<DoSickRoom> findObjects() {
        List<DoSickRoom> list = doSickRoomDao.findObjects();
        return list;
    }

    @Override
    public int addAll(DoSickRoom d){
        int a = doSickRoomDao.addAll(d);
        return a;
    }
}
